data = input('输入一个字符串:')
d = dict()
for ch in data:
    d[ch] = d.get(ch,0)+1    
moststr = max(d.items(),key = lambda item:item[1])
print(moststr)

